{"version":3,"file":"script.min.js","sources":["script.js"],"names":["window","JCIblockVoteStars","params","this","progressObj","ratingObj","starsObj","progressId","ratingId","starsId","ajaxParams","siteId","voteData","element","percent","count","config","readOnly","alreadyVoted","request","BX","type","isPlainObject","isNotEmptyString","ajaxUrl","checkVoteUrl","isNumber","preparePercent","isBoolean","ready","proxy","init","prototype","showProgress","showVotes","checkVote","ajax","timeout","method","dataType","url","data","sessid","bitrix_sessid","vote_id","site_id","onsuccess","checkVoteResult","result","success","voted","isElementNode","bind","handlerMouseMove","handlerMouseOut","handlerClick","destroy","unbindAll","parseInt","isNaN","style","toString","innerHTML","e","starsPos","newPercent","event","pos","pageX","left","width","Math","ceil","newValue","rating","vote","clickResult","votes"],"mappings":"CAAC,SAAUA,GACV,GAAIA,EAAOC,kBACV,MAkBDD,GAAOC,kBAAoB,SAAUC,GAEpCC,KAAKC,YAAc,IACnBD,MAAKE,UAAY,IACjBF,MAAKG,SAAW,IAEhBH,MAAKI,WAAa,EAClBJ,MAAKK,SAAW,EAChBL,MAAKM,QAAU,EAEfN,MAAKO,aACLP,MAAKQ,OAAS,EAEdR,MAAKS,UACJC,QAAS,EACTC,QAAS,EACTC,MAAO,EAGRZ,MAAKa,QACJC,SAAW,MACXC,aAAc,KACdC,QAAS,MAGV,IAAIC,GAAGC,KAAKC,cAAcpB,GAC1B,CACC,GAAIkB,GAAGC,KAAKE,iBAAiBrB,EAAOK,YACnCJ,KAAKI,WAAaL,EAAOK,UAC1B,IAAIa,GAAGC,KAAKE,iBAAiBrB,EAAOM,UACnCL,KAAKK,SAAWN,EAAOM,QACxB,IAAIY,GAAGC,KAAKE,iBAAiBrB,EAAOO,SACnCN,KAAKM,QAAUP,EAAOO,OACvB,IAAIW,GAAGC,KAAKE,iBAAiBrB,EAAOsB,SACnCrB,KAAKqB,QAAUtB,EAAOsB,OACvB,IAAIJ,GAAGC,KAAKE,iBAAiBrB,EAAOuB,cACnCtB,KAAKsB,aAAevB,EAAOuB,YAC5B,IAAI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